Ignore deprecated (and reportedly unsafe) method
authorFelix Krull <f_krull@gmx.de>
Sun, 26 May 2019 12:12:55 +0000 (14:12 +0200)
committerColin Walters <walters@verbum.org>
Fri, 6 May 2022 16:53:54 +0000 (12:53 -0400)
rust-bindings/rust/conf/ostree.toml
rust-bindings/rust/src/auto/repo.rs

index 398cb0f39dddd8ac66f651363bfd5eaf5ed10984..5d7e8331590249a52331e5a95aea2c1ec1312554 100644 (file)
@@ -49,7 +49,6 @@ generate = [
 
     #"OSTree.RepoPruneOptions",
     #"OSTree.RepoExportArchiveOptions",
-    #"OSTree.RepoCheckoutOptions",
     #"OSTree.RepoCheckoutAtOptions",
 ]
 
@@ -90,6 +89,11 @@ status = "generate"
     pattern = "write_metadata_async|write_content_async|pull_from_remotes_async|find_remotes_async"
     ignore = true
 
+    [[object.function]]
+    # this is deprecated and supposedly unsafe for GI
+    name = "checkout_tree_at"
+    ignore = true
+
 [[object]]
 name = "OSTree.RepoFinderResult"
 status = "generate"
index dfe9f3e485e7536b618f5c767365df31533ece1a..d7841c8ea7ae8a7e8abfda95c46f2a67b4b3944c 100644 (file)
@@ -117,10 +117,6 @@ impl Repo {
         }
     }
 
-    //pub fn checkout_tree_at<P: IsA<gio::Cancellable>>(&self, options: /*Ignored*/Option<&mut RepoCheckoutOptions>, destination_dfd: i32, destination_path: &str, commit: &str, cancellable: Option<&P>) -> Result<(), Error> {
-    //    unsafe { TODO: call ostree_sys:ostree_repo_checkout_tree_at() }
-    //}
-
     pub fn commit_transaction<P: IsA<gio::Cancellable>>(&self, cancellable: Option<&P>) -> Result<RepoTransactionStats, Error> {
         unsafe {
             let mut out_stats = RepoTransactionStats::uninitialized();